<%@ page contentType="text/html; charset=UTF-8" errorPage="/base/jsp/common/CommonError.jsp"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="h" uri="/bdp-html"%>
<%@taglib prefix="bdp" uri="/bdp-base"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="/base/jsp/common/CommonListTop.jsp"%>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>系统管理-用户管理</title>
		<link href="${ctx}/base/css/base.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/base/css/common.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/base/css/${customTheme}.css" rel="stylesheet" type="text/css" />
		<script src="${ctx}/base/js/jquery/jquery.js" type="text/javascript"></script>
		<script src="${ctx}/base/js/base.js" type="text/javascript"></script>
		<script src="${ctx}/base/js/common/FormFunction.js" type="text/javascript"></script>
		<!-- 公用的按钮函数 -->
		<script>
			var addUrl = "${ctx}/sys/users!initUsers.action";//表单列表add 的url地址
			var delUrl = "${ctx}/sys/users!delUsers.action";//表单列表del的url地址
			var viewUrl = "${ctx}/sys/users!viewUsers.action";//表单列表view的url地址
			var editUrl = "${ctx}/sys/users!editUsers.action";//表单列表edit的url地址
			var listUrl = "${ctx}/sys/users!listUsers.action";//表单列表list 的url地址,用来作为搜索地址
 
			function defaultEvent(eventType,width,height) {
				FormFunction.defaultEvent(eventType,width,height);//默认的处理函数，需自定义时自己写 在PublicFunction.js里
			}
		</script>
	</head>

	<body class="rightBody">
		<form name="searchForm" method="post" action="">
			<table width="100%" class="title" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<th>
						<img src="${ctx}/base/images/public/titleicon.gif" width="16" height="16" alt="图标 " class="icon" />
						系统管理-用户管理
					</th>
					<th width="200"></th>
				</tr>
				<tr>
					<td>
						<span class="fl ml5 lh200">搜索内容：</span>
						<s:textfield name="searchValue['title']" cssClass="fl mr5 input" />
						<input type="button" value="搜索" class="btnSo ml10" onclick="defaultEvent('search')" />
						<input name="" type="reset" value="重置" class="btn2 ml5" />
					</td>
					<td align="right">
						<bdp:permission module="xxx_xxx" operation="add">
							<input name="add" type="button" class="btn2" value="新增" onclick="defaultEvent('add',600,300)" />
						</bdp:permission>
						<bdp:permission module="xxx_xxx" operation="del">
							<input name="del" type="button" class="btn2" value="删除" onclick="defaultEvent('del')" />
						</bdp:permission>
					</td>
				</tr>
			</table>
			<h:table>
				<h:column headerTitle="<input type='checkbox' name='slectAll' value='checkbox' onclick='selectAll(this.checked);'>" align="center" width="32">
					<input type="checkbox" name="selectedRow" value="<s:property value="id"/>" />
				</h:column>
				<h:column headerTitle="编号" width="280">
					<s:property value="code" />
				</h:column>
				<h:column headerTitle="用户名称">
					<s:property value="name" />
				</h:column>
				<h:column headerTitle="性别">
				    <c:if test="${sex==1}">男</c:if><c:if test="${sex==0}">女</c:if>
				</h:column>
				<h:column headerTitle="所在组">
					<s:property value="organization.name" />
				</h:column>
				<h:column headerTitle="联系电话">
					<s:property value="homeTel" />
				</h:column>
				<h:column headerTitle="操作" width="80" align="center">
					<bdp:permission module="xxx_xxx" operation="edit">
						<a href="javascript:FormFunction.editSingle('<s:property value="id"/>',null,600,300);" class="linkorange">修改</a>
					</bdp:permission>
					<bdp:permission module="xxx_xxx" operation="del">
						<a href="javascript:FormFunction.delSingle('<s:property value="id"/>');" class="linkorange">删除</a>
					</bdp:permission>
				</h:column>
			</h:table>
			<table width="100%" class="pageDown" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td align="right">
						<h:pager /> &nbsp;
					</td>
				</tr>
			</table>
		</form>
		<%@ include file="/base/jsp/common/CommonListFoot.jsp"%>
	</body>
</html>
